/*  1:   */ package org.intellij.plugins.relaxNG.compact.psi.impl;
/*  2:   */ 
/*  3:   */

import com.intellij.lang.ASTNode;
import com.intellij.psi.PsiElement;
import com.intellij.psi.impl.meta.MetaRegistry;
import com.intellij.psi.meta.PsiMetaData;
import com.intellij.psi.search.PsiElementProcessor;
import com.intellij.psi.xml.XmlDocument;
import com.intellij.psi.xml.XmlProlog;
import com.intellij.psi.xml.XmlTag;
import com.intellij.xml.XmlNSDescriptor;
import org.intellij.plugins.relaxNG.compact.psi.RncElementVisitor;
import org.intellij.plugins.relaxNG.compact.psi.RncGrammar;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */
/* 10:   */
/* 11:   */
/* 12:   */
/* 13:   */
/* 14:   */
/* 15:   */
/* 16:   */ 
/* 17:   */ public class RncDocument
/* 18:   */   extends RncElementImpl
/* 19:   */   implements XmlDocument
/* 20:   */ {
/* 21:   */   public RncDocument(ASTNode paramASTNode)
/* 22:   */   {
/* 23:35 */     super(paramASTNode);
/* 24:   */   }
/* 25:   */   
/* 26:   */   public XmlNSDescriptor getDefaultNSDescriptor(String paramString, boolean paramBoolean)
/* 27:   */   {
/* 28:39 */     return null;
/* 29:   */   }
/* 30:   */   
/* 31:   */   public XmlProlog getProlog()
/* 32:   */   {
/* 33:43 */     return null;
/* 34:   */   }
/* 35:   */   
/* 36:   */   @Nullable
/* 37:   */   public XmlTag getRootTag()
/* 38:   */   {
/* 39:48 */     return null;
/* 40:   */   }
/* 41:   */   
/* 42:   */   public XmlNSDescriptor getRootTagNSDescriptor()
/* 43:   */   {
/* 44:52 */     return null;
/* 45:   */   }
/* 46:   */   
/* 47:   */   public boolean processElements(PsiElementProcessor paramPsiElementProcessor, PsiElement paramPsiElement)
/* 48:   */   {
/* 49:56 */     return false;
/* 50:   */   }
/* 51:   */   
/* 52:   */   @Nullable
/* 53:   */   public PsiMetaData getMetaData()
/* 54:   */   {
/* 55:61 */     return MetaRegistry.getMeta(this);
/* 56:   */   }
/* 57:   */   
/* 58:   */   public boolean isMetaEnough()
/* 59:   */   {
/* 60:65 */     return true;
/* 61:   */   }
/* 62:   */   
/* 63:   */   public RncGrammar getGrammar()
/* 64:   */   {
/* 65:69 */     return (RncGrammar)findChildByClass(RncGrammar.class);
/* 66:   */   }
/* 67:   */   
/* 68:   */   @NotNull
/* 69:   */   protected <T> T[] findChildrenByClass(Class<T> paramClass)
/* 70:   */   {
/* 71:75 */     Object[] tmp5_2 = super.findChildrenByClass(paramClass);
/* 72:75 */     if (tmp5_2 == null) {
/* 73:75 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/intellij/plugins/relaxNG/compact/psi/impl/RncDocument", "findChildrenByClass" }));
/* 74:   */     }
/* 75:75 */     return tmp5_2;
/* 76:   */   }
/* 77:   */   
/* 78:   */   public void accept(@NotNull RncElementVisitor paramRncElementVisitor)
/* 79:   */   {
/* 80:79 */     if (paramRncElementVisitor == null) {
/* 81:79 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/intellij/plugins/relaxNG/compact/psi/impl/RncDocument", "accept" }));
/* 82:   */     }
/* 83:79 */     paramRncElementVisitor.visitElement(this);
/* 84:   */   }
/* 85:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.intellij.plugins.relaxNG.compact.psi.impl.RncDocument

 * JD-Core Version:    0.7.0.1

 */